<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>印章管理</title>
</head>
<body class="layui-layout-body">
    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div class="body_right">
            <h4 class="nav_title">印章管理
            		<a href="javascript:openwinx('添加印章','/admin/devices/form.htm','600','450');" class="add_btn">添加</a>
            </h4>
            <div class="layui-form" >
            		<form action="/admin/devices/list.htm" method="get">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label width60">企业名称</label>
                        <div class="layui-input-inline width150">
                            <input type="text" class="layui-input" name="companyName" value="${query.companyName}" placeholder="企业名称 ">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label width60">设备编号</label>
                        <div class="layui-input-inline width150">
                            <input type="text" class="layui-input" name="devicesId" value="${query.devicesId}" placeholder=" 设备编号 ">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label width60">状态</label>
                        <div class="layui-input-block width150">
                            <select name="interest" lay-filter="aihao">
                                <option value="0" selected="">待绑定</option>
                                <option value="1">使用中</option>
                                <option value="2" >已过期</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline width80">
                        <div class="layui-input-inline ">
                            <button class="layui-btn" lay-submit="" lay-filter="demo1" >搜索</button>
                        </div>
                    </div>
                </div>
                </form>
            </div>
            <table class="layui-table  layui-form" mytable" lay-even="" lay-skin="nob">
                <thead>
                <tr>
                    <th>设备编号</th>
                    <th>设备型号</th>
                    <th>出厂日期</th>
                    <th>开通日期</th>
                    <th>失效日期</th>
                    <th>激活状态</th>
                    <th>设备状态</th>
                    <th>使用次数</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                		<#list pm.datas as item>
                    <tr>
                        <td>${item.devicesId}</td>
                        <td>${item.model}</td>
                        <td>${item.produceDate?string('yyyy-MM-dd')}</td>
                        <td>
                        		<#if item.expireDate??>
                        		${item.expireDate?string('yyyy-MM-dd')}
                        		</#if>
                        	</td>
                        <td>
                        		<#if item.installTime??>
                        		${item.installTime?string('yyyy-MM-dd')}
                        		<#else>
                        		未开通
                        		</#if>
                        </td>
                        <td>
                        	 <input type="checkbox" name="switch"  lay-text="激活|停用"  checked="" lay-skin="switch">
                        </td>
                        <td><span class="color_orange">${item.devicesStatus}</span></td>
                        <td>${item.useTimes}</td>
                        <td class="allbox_a">
                        		<a href="javascript:;">查看</a>
                        		<a href="javascript:;">续签</a>
                        		<a href="javascript:;">启用</a>
                        	</td>
                    </tr>
                    </#list>
                </tbody>
            </table>
            <@p.page pm=pm></@p.page>

        </div>
     </div>

</body>
</html>